#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <vector>
#include <string>

using namespace std;

string longestCommonPrefix(vector<string>& strs) {
    string fix = "";
    for (int i = 0; i < strs[0].size(); ++i)
    {
        for (int j = 1; j < strs.size(); ++j)
        {
            if (i + 1 > strs[j].size())
            {
                return fix;
            }
            if (strs[0][i] != strs[j][i])
            {
                return fix;
            }
        }
        fix += strs[0][i];
    }

    return fix;
}

int main()
{

	return 0;
}